package com.lanou3g.mynewstest.tools;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;
import android.support.annotation.Nullable;

/**
 * Created by dllo on 16/1/22.
 */
public class LocationService extends Service {
    private IMyAidlInterface.Stub stub=new IMyAidlInterface.Stub() {
        @Override
        public String getLocation() throws RemoteException {
            return "大连";
        }

        @Override
        public String getServiceName() throws RemoteException {
            return "获取当前地址";
        }
    };
    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return stub;
    }

}
